package com.code.user.client.hystrix;

import com.code.commons.model.Model;
import com.code.commons.model.qo.PageQO;
import com.code.commons.model.vo.PageVO;
import com.code.user.client.HelpFeedbackClient;
import com.code.user.model.po.HelpFeedback;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Set;

/**
 * 帮助与反馈的熔断回调类
 *
 * @author tangyifei
 */
@Component
@Slf4j
public class HelpFeedbackClientHystrix implements HelpFeedbackClient {

    @Override
    public HelpFeedback add(@RequestBody HelpFeedback helpFeedback) {
        log.info("添加帮助与反馈发生请求超时，走熔断！");
        return null;
    }

    @Override
    public int deleteById(@PathVariable("id") Long id) {
        return 0;
    }

    @Override
    public HelpFeedback updateByIdSelective(@PathVariable("id") Long id, @RequestBody HelpFeedback record) {
        return null;
    }

    @Override
    public HelpFeedback updateById(@PathVariable("id") Long id, @RequestBody HelpFeedback record) {
        return null;
    }

    @Override
    public HelpFeedback getById(@PathVariable("id") Long id) {
        return null;
    }

    @Override
    public List<HelpFeedback> getByIds(@RequestBody Set<Long> ids) {
        return null;
    }

    @Override
    public PageVO<HelpFeedback> getPage(@RequestBody PageQO<? extends Model> pageQO) {
        return null;
    }

    @Override
    public String trace(@PathVariable("command") String cmd) {
        return null;
    }
}
